package engine;

public class Player {

	private int id;
	private int posX;
	private int posY;
	private int angle;
	private int ownedFlags;
	private int frags;
	private int deaths;
	private String name;
	private int playerWidth = 40;
	private int playerHeigt = 40;
	private Boolean played; 
	
	public Player(World w){
		this.posX = (w.getSWorldX()/2)-(playerWidth/2);
		this.posY = (w.getSWorldY()/2)-(playerHeigt/2);
		this.ownedFlags = 0;
		this.frags = 0;
		this.deaths = 0;
		this.name = new String ("Player"+id);
		this.played = true;
	}
	
	public int getPosX(){
		return this.posX;
	}
	
	public int getPosY(){
		return this.posY;
	}
	
	public int getAngle(){
		return this.angle;
	}
	
	public int getOwnedFlags(){
		return this.ownedFlags;
	}
	
	public int getFrags(){
		return this.frags;
	}
	
	public int getDeaths(){
		return this.deaths;
	}
	
	public String getName(){
		return this.name;
	}
	
	public int getID(){
		return this.id;
	}
	
	public Boolean getPlayed(){
		return this.played;
	}
	
	public void setPosX(int x){
		this.posX = x;
	}
	
	public void setPosY(int y){
		this.posY = y;
	}
	
	public int setAngle(int a){
		return this.angle = a;
	}
	
	public void setOwnedFlags(int o){
		this.ownedFlags = o;
	}
	
	public void setFrags(int f){
		this.frags = f;
	}
	
	public void setDeaths(int d){
		this.deaths = d;
	}
	
	public void setName(String n){
		this.name = n;
	}
	
	public void setID(int i){
		this.id = i;
	}
	
	public void setPlayed(Boolean b){
		this.played = b;
	}
}


